package com.peter.design.pattern.adapter.general.interfaceadapter;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/28 15:38
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        Adapter adapter = new Adapter(new Adaptee()) {
            @Override
            public int request1() {
                return adaptee.specificRequest() / 10;
            }
        };

        int result = adapter.request1();
        System.out.println(result);
    }
}
